<template>
    <div class="alertAnswer">
        <div class="top">

        </div>
        <div class="bottom">
            <div class="icon"><span>解析</span>    
                <img src="@/assets/images/base-images/评估-叉.png" alt="" width="25px" height="25px" @click="goBack">
            </div>
            <div class="answer">
                <span> 答案选择为 "{{ answer }}"</span>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        props: {
            answer: {
                type: String,
                default: ''
            },
        },
        methods: {
            goBack() {
                this.$router.go(-1)
            }
        },
    }
</script>

<style  scoped>
.alertAnswer{
    position: absolute;
    height: calc(100%);
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background-color: rgba(0,0,0,.3);
}
.top{
    height: calc(100% - 375px);
}
.bottom{
    height: 375px;
    background-color: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    overflow: hidden;
}
.bottom .icon{
    width: 325px;
    margin: 28px auto 22px auto ;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    color: #11153a;
    font-weight: 700;
}
.bottom .icon img{
vertical-align: middle;
}
.answer{
    width: 325px;
    margin: 0 auto;
}
</style>